<?php

  /**
  *@desc A page. See single.php is for a blog post layout.
  */

  get_header();
?>
<?php htmlUA('<div id="body">','<section id="body">'); ?>
<?php
  if (have_posts()) : while (have_posts()) : the_post();
?>

<?php
htmlUA('<div id="article">','<article>');
?>
	
	<div class="title">
		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
		<div class="sprite">
			<strong><?php the_author(); ?></strong> wrote on <?php the_time('Y-m-d'); ?> | <?php 
			if (!comments_open()) {
				_e( 'Comments are closed.');
			} else {
				comments_popup_link(__('Leave a comment'), __('1 Comments'), __('% Comments'));
			}
			?>
		</div>
	</div>
	
	<div class="content"><?php the_content(__('<div class="rm"><a href="" class="readmore">Read more</a></div>')); ?></div>

<?php htmlUA('</div>','</article>'); ?>

  <?php
  comments_template();

  endwhile;
?>
<?php htmlUA('</div>','</section>'); ?>
<?php else: ?>

<p class="nocontent"><?php _e('Sorry, no posts matched your criteria.'); ?></p>

<?php
  endif;
get_sidebar();
get_footer();
?>